<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE-EmulateIE8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Vamos a la cancha!</title>
		<link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
		<r:require modules="jquery, bootstrap-css, bootstrap-modal, valc"/>
		<r:layoutResources />
<%--		<link rel="stylesheet" href="${resource(dir: 'css', file: 'bootstrap.css')}" type="text/css">--%>
<%--		<link rel="stylesheet" href="${resource(dir: 'css', file: 'mainApp.css')}" type="text/css">--%>
<%--		<script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.js')}"></script>--%>
<%--		<script type="text/javascript" src="${resource(dir: 'js', file: 'application.js')}"></script>--%>
<%--		<script type="text/javascript" src="${resource(dir: 'js', file: 'bootstrap.min.js')}"></script>--%>
<%--		<script type="text/javascript" src="${resource(dir: 'js', file: 'valc.js')}"></script>--%>
<%--		--%>
<%--		<r:require modules="bootstrap, valc"/>--%>

		<script type="text/javascript">
		  var projectName = 'VALC';
		  var latitud = '-34.6001212'; //TODO: parametrizar
		  var longitud = '-58.44988340000001' //TODO: parametrizar
		</script>
		

		<g:layoutHead/>
		
	</head>
	<body>
		<g:render template="/templates/mainHeader"></g:render>
		<g:if test="${flash.message}">
			<div class="alert">
				<button type="button" class="close" data-dismiss="alert">&times;</button>
				${flash.message }
			</div>
		</g:if>
		<div id="spinner" class="spinner" style="display: none;"></div>
		<g:render template="/perfil/crearPerfil" model="['persona':persona, 'equipos':equipos]"></g:render>
		<g:render template="/templates/modalTerminos"></g:render>
<%--		<g:render template="/templates/crearMubbia"></g:render>--%>
		<div class="container-fluid" id="Container">	
			<g:layoutBody/>
		</div>
<%--		<div class="footer" role="contentinfo"></div>--%>
<%--		<div id="spinner" class="spinner" style="display:none;">--%>
<%--			<g:message code="spinner.alt" default="Loading&hellip;"/>--%>
<%--		</div>--%>
		<r:layoutResources />
	</body>
</html>